package com.example.springbootsenior.task.controller;

import com.example.springbootsenior.task.service.AsyncService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @classDesc: 功能描述:
 * @author: 李明杰
 * @date: 2021/11/20 15:05
 * @copyright
 */
@RestController
public class AsyncController {
    @Resource
    AsyncService asyncService;

    @GetMapping("/hello")
    public String hello() {
        asyncService.hello();
        return "success";
    }
}
